<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>首页</title>
</head>
<body>
    <h1 style="text-align: center">这是首页  加油好吧</h1>
    <p th:text="${msg}" style="color: red;text-align: center"></p>
    <hr />
    <p th:text="${errormsg}" style="color: red;text-align: center" th:if="${not #strings.isEmpty(errormsg)}"></p>
    <hr/>
    <form th:action="@{/userlogin}"  style="text-align: center">
        用户名:<input type="text" name="sname" id="sname"/>
        <br>
        密&emsp;码:<input type="password" name="password" id="password"/>
        <br>
        <input type="submit" value="确认登录">
    </form>
</body>
</html>